package top.hmtools.jaxb;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement(name="user")
public class UserBean {

	@XmlAttribute(name="name")
	private String name;
	
	@XmlAttribute(name="age")
	private int age;
	
	@XmlElement(name="T-Shit")
	private TShitBean tShitBean;
	
	@XmlElementWrapper(name="cars")
	@XmlElements(value = { @XmlElement(name="car") })
	private List<CarBean> carBeans;

	@XmlTransient  
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlTransient  
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@XmlTransient  
	public TShitBean gettShitBean() {
		return tShitBean;
	}

	public void settShitBean(TShitBean tShitBean) {
		this.tShitBean = tShitBean;
	}

	@XmlTransient  
	public List<CarBean> getCarBeans() {
		return carBeans;
	}

	public void setCarBeans(List<CarBean> carBeans) {
		this.carBeans = carBeans;
	}
	
	
}
